mod duplicate_file_analyzer;
mod my_commands;

#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
    tauri::Builder::default()
        .plugin(tauri_plugin_process::init())
        .plugin(tauri_plugin_updater::Builder::new().build())
        .plugin(tauri_plugin_fs::init())
        .plugin(tauri_plugin_window_state::Builder::new().build())
        .plugin(tauri_plugin_dialog::init())
        .plugin(tauri_plugin_opener::init())
        .invoke_handler(tauri::generate_handler![
            my_commands::cancel_processing,
            my_commands::move_file_to_trash,
            my_commands::open_path,
            my_commands::search_duplicate_file,
        ])
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}
